package cn.opopopo.design_pattern_learn.行为型.state;

class HighState implements LightState {
    @Override
    public void pressSwitch(LightContext context) {
        System.out.println("灯关了");
        context.setState(new OffState()); // 回到关闭
    }
}